package com.feign.controller;

import com.feign.service.EnterpriseClientService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * Created by dell on 2016/10/25.
 */
@RestController
public class EnterpriseMSController {

    @Autowired
    private EnterpriseClientService enterpriseClientService;

    @RequestMapping(value = "search",method = RequestMethod.GET)
    public PageInfo<Map> search(@RequestParam(required = false,defaultValue = "1") int curPage,
                                @RequestParam(required = false,defaultValue = "10") int pageSize){
        return  enterpriseClientService.search(curPage,pageSize);
    }
}
